package com.my.study.redisson.register.health.impl;

import com.my.study.redisson.register.RegisterContext;
import com.my.study.redisson.register.health.AbstractRegisterHealth;
import lombok.extern.slf4j.Slf4j;

/**
 * 服务端健康检查
 *
 * @author: yidujun
 * @create: 2021/11/23 10:38
 */
@Slf4j
public class RegisterServerHealth extends AbstractRegisterHealth {

    public RegisterServerHealth(RegisterContext registerContext) {
        super(registerContext);
    }

    @Override
    protected void doHeartbeat() {
        int retryCount = registerContext.getRegisterProperties().getRetryCount();
        log.info(">>> [doHeartbeat] retryCount: {} <<<", retryCount);
    }
}
